package com.zzld.modules.autoinn.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zzld.core.service.BaseServiceImpl;
import com.zzld.modules.autoinn.entity.ProductPing;
import com.zzld.modules.autoinn.mapper.ProductPingMapper;
import com.zzld.modules.autoinn.service.IProductPingService;

@Service("productPingService")
public class ProductPingServiceImpl extends BaseServiceImpl<ProductPing> implements IProductPingService {

	@Autowired
	private ProductPingMapper productPingMapper;

	public List<ProductPing> selectbystoreid(String storeid) {
		try {
			
				return productPingMapper.selectbystoreid(storeid);
		
		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
	
	public ProductPing selectbypingcount(String expenseid){
		try{
			return productPingMapper.selectbypingcount(expenseid);
		}catch(Exception e){
			e.printStackTrace();
		}
		return null;
	}
	
	public int selectbysum(String storeid){
		return productPingMapper.selectbysum(storeid);
	}
	
	public int selectbycount(String storeid){
		return productPingMapper.selectbycount(storeid);
	}
}
